# Maintainer: Willow Barraco <contact@willowbarraco.fr>
pkgname=sway-audio-idle-inhibit
_commit=c850bc4812216d03e05083c69aa05326a7fab9c7
_date=20230809
pkgver=0.1.1_git$_date
pkgrel=0
pkgdesc="Prevents swayidle from sleeping while any application is outputting or receiving audio"
url="https://github.com/ErikReider/SwayAudioIdleInhibit"
license="GPL-3.0-only"
arch="all"
makedepends="
	pulseaudio-dev
	wayland-dev
	wayland-protocols
	meson
	ninja
	"
source="$pkgname-$_commit.tar.gz::https://github.com/ErikReider/SwayAudioIdleInhibit/archive/$_commit.tar.gz"
options="!check" # no test suite
builddir="$srcdir/SwayAudioIdleInhibit-$_commit"

build() {
	abuild-meson . output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
3574e0157c0a05ad25b9836e21fdd697b370bc287049887a44b7a251e92c0a82c423697c4c86882b1c1e7b520f7f1d6ff986cf76af89d9eaa3c35f37641571c4  sway-audio-idle-inhibit-c850bc4812216d03e05083c69aa05326a7fab9c7.tar.gz
"
